HT-964: Provide capability to configure secondary label for radio fields#877
Merged
Super-Chama merged 2 commits intoorangehrm:entfrom Dec 18, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds the capability to configure secondary labels for radio input fields, which are displayed in parentheses with reduced opacity (50%) next to the primary label. The feature allows developers to provide additional contextual information for radio options, such as "Full Time (40 hours/week)".
Key Changes:
- Added
secondaryLabelprop to RadioInput and RadioGroup components with proper TypeScript typing - Implemented visual styling for secondary labels with reduced opacity and spacing
- Updated Storybook documentation with examples demonstrating the new feature
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
components/src/core/components/Input/RadioInput.vue |
Added secondaryLabel prop and rendered it conditionally in both left and right label positions |
components/src/core/components/Input/RadioGroup.vue |
Extended Options interface with optional secondaryLabel field and passed it to RadioInput with translation support |
components/src/core/components/Input/radio-input.scss |
Added styling for secondary label with 50% opacity and 0.25rem left margin |
storybook/stories/core/components/Input/RadioInput.stories.js |
Added secondaryLabel control and new story demonstrating the feature |
storybook/stories/core/components/Input/RadioGroup.stories.js |
Updated options documentation to include secondaryLabel and added comprehensive story example |
changelog.md |
Documented the change with commit hash and affected files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e82ac7c to
cf00a10
Compare
bcb2c5c to
71168c9
Compare
Super-Chama
reviewed
Dec 18, 2025
Member
Super-Chama
left a comment
There was a problem hiding this comment.
Consider adding few test to radio input to check if secondary label is showing as expected
71168c9 to
861cfb3
Compare
861cfb3 to
43dda99
Compare
Super-Chama
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist